package design_pattern.factory.abstract_factory;

/**
 * 这是一个测试类
 *
 * @author 15594
 */
public class Test {
    public static void main(String[] args) {
        AbstractFactory colorFactory = FactoryBuilder.getFactory("color");
        Colour red = colorFactory.getColour("red");
        red.getColour();
        AbstractFactory bookFactory = FactoryBuilder.getFactory("book");
        Book english = bookFactory.getBook("English");
        english.getBookName();
        english.getBookPrice();
    }
}
